<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        require_once 'fbookClass.php';
        $fbOauthCode = 'AQD3qcmp6fF1TcMgjUslU3RetSNPLjaJwYyUFtGbEjVDC-xJ3WwufXd0Xw5blXmHjE3-4X-qz030J9HtxglASmspb3bktI7XgKYTAlJqudYKHTLq4COZEl2zRD1Uat088xLrIrDDsLAw9D_3zXxj4oG_AaQ9DHHYDIbRO578koput5GCN4gji1sb-8j0QB8DqP0#_=_';
        $fbAccessToken = 'AAADYs3iIE94BAPltxzObKXLwUDHb7ttLurLQoZBZATiM8ZALQrZBL1YC3P7Y6OtDFUim6iv9O3uU1JnXqZC3oclbfOEarxebc9kGHWOigYZBR2QtHP7CwY';
        //$fbOauthCode = 'AQBtV1e6xSoCZPZKSp6N60x6Vy1lTAjM73UxFGybJjfyuQVqHpByY2M3DlH9S3k9ePbsp6BFf04yUVC2Z2rnScrChSZnK1kH8zMz5pANvtSRetTuxB9cXGzGGmTckpwabBJ_g1H0QfxNxjv1o9jh5inzi-SQx7So1SeybP9Wlp5J8BGwuj5tZM43czZurnPsSe0#_=_';

    
        $facebook = new FBookClass(
                //'307061402674429', 
                //'10bd160af145c111ceca30b963a42089'
                '238265332929502',
                '323f8a04b358107ab0860b61542eef5d'
                //array(
                    //'redirectURI' =>  "http://www.stilero.com/",
                    //'fbPageID'              =>  '223802977656746',
                //)
        );
        //$facebook->setOauthCode($fbOauthCode);
        $facebook->setOauthAccessToken($fbAccessToken);
        //$facebook->setRedirectURI('http://www.do-stadtmagazine.de/');
        $facebook->setRedirectURI('http://www.iphones.se/');

        //$facebook->setFBPageId('196379763802709');
        $facebook->postLinkToFB("http://www.stilero.com", "Sorry for spamming, testing a new app");
       // $respWithExpire='access_token=AAAEaHZBtl36ABAD1DQfOK8Q7hCvE5GxXxQF4Y5veF20AaJxhir4uq2HX57POAa3qu8fR98rpZCkTksoDjAcsoBk1oDTwIZD&expires=5178331';
        //$respNoExpire = 'access_token=AAAEaHZBtl36ABAD1DQfOK8Q7hCvE5GxXxQF4Y5veF20AaJxhir4uq2HX57POAa3qu8fR98rpZCkTksoDjAcsoBk1oDTwIZD';
        //$facebook->findTokenInResponse($respWithExpire);
        //$facebook->findTokenInResponse($respNoExpire);
        print $facebook->outputVar($facebook->getError(), false);
        print $facebook->outputVar($facebook->getInfo(),false);
        print $facebook->outputVar($facebook->getNotice(),false);
        ?>
        
    </body>
</html>
